package com.pachong.android.frameworkbase.dialog.base;

import android.app.DialogFragment;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.Gravity;

import com.pachong.android.frameworkbase.R;


/**
 *
 * @Author: PengWeiwei
 * @E-mail: pengveivei@sina.cn
 * @CreateDate: 2016-05-03
 * @Version: 1.0.0
 */
public abstract class CenterDialogFragment extends BaseDialogFragment {

    @Override
    public void onCreate(@Nullable Bundle savedInstanceState) {
        setStyle(DialogFragment.STYLE_NO_FRAME, R.style.MyDialog_Transparent);
        super.onCreate(savedInstanceState);
        setGravity(Gravity.CENTER);
    }

}
